package cn.wolfcode.rbac.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;

@Data @AllArgsConstructor
@NoArgsConstructor
public class JsonResult {
    private String msg;
    private boolean success = true;

    public JsonResult(boolean success) {
        this.success = success;
    }

    public void mark(String msg){
        this.msg = msg;
        this.success = false;
    }

    public JsonResult(String msg) {
        this.msg = msg;
    }
}
